/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.qdu.service.impl;

import com.qdu.dao.NoteDao;
import com.qdu.dao.impl.NoteDaoImpl;
import com.qdu.entity.Note;
import com.qdu.service.NoteService;
import java.util.List;

/**
 *
 * @author 12068
 */
public class NoteServiceImpl implements NoteService{
    
NoteDao sd = new NoteDaoImpl();

    @Override
    public int addNote(Note n) {
        return sd.insert(n);
    }

    @Override
    public int delete(int Nno) {
        return sd.delete(Nno);
    }

    @Override
    public Note findNoteByNno(int Nno) {
        return sd.getNoteByNno(Nno);
    }

    @Override
    public List<Note> findNoteByNtopic(String Ntopic) {
       return sd.getNoteByNtopic(Ntopic);
    }

    

    
}
